<%=link_to("Categories", categories_path)%>
<% @category.breadCrumbLinks([]).each do | crumb | %>
	<% unless (crumb[:name].nil? || crumb[:id].nil?) %>
		<%=link_to(crumb[:name], category_path(crumb[:id]))%>
	<%end%>
<%end%>


<%= form_for @category do |f| %>
	<%= f.label :name %>
	<%= f.text_field :name %>
	<%= f.hidden_field :parent_id, :value=>@category.parent_id %>
	<% f.submit %>
<% end %>
